@extends('layouts')

@section('content')

    @parent

    @if(!isset($data))
        <p>没有数据</p>
    @else
        <p>长度:{{count($data)}}</p>
        @foreach($data as $item)
            <p>{{$item}}</p>
        @endforeach

        @forelse($emptyData as $item)
            <p>{{$item}}</p>
        @empty
            空数组
        @endforelse
    @endif

@endsection